import {createApp} from 'vue'
import {createPinia} from 'pinia'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/theme-chalk/dark/css-vars.css'
import App from './App.vue'
import router from './router'
import "animate.css";
import setting from "@/setting.js";
import 'element-plus/theme-chalk/el-message.css'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import 'element-plus/dist/index.css'
import './style.css'


const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
// 使用全局自定义指令
app.use(router)
app.use(createPinia())
app.use(pinia)
app.use(ElementPlus, {size: setting.theme.size})
app.mount('#app')
